import request from "@/utils/request";
import { param } from "@/utils";

/**
* 获取我的报销
*/
export const getList = (query, data) => {
    return request({
        url: `/finance/billCategoryNote/user/page?${param(query)}`,
        method: "post",
        data
    });
};

/**
 * 添加报销单
 */
export const addOaReimbursed = (data) => {
  return request({
    url: `/finance/billCategoryNote/add`,
    method: "post",
    data
  });
};

/**
* 导出报销
*/
export const exportReimbursement = (data) => {
  return request({
    url: `/finance/excel/exportReimburse`,
    method: 'post',
    responseType: 'blob',
    data
  })
}
/**
 * 合作方
 */
export const getPartner = (value) => {
  return request({
    url: `/finance/partner/getPerson/${value}`
  })
}

/**
 * 合同
 */
export const getContractList = (data) => {
  return request({
    url: `/finance/partner/queryContractList`,
    method: 'post',
    data
  })
}